package com.wzy.action;

import com.opensymphony.xwork2.Action;
import jdk.internal.instrumentation.TypeMapping;

public class HelloWorldAction implements Action {

    private String name="";

    private String message="";

    @Override
    public String execute() throws Exception {
        this.setMessage("Hello,"+this.getName());

        //处理完毕，返回导航结果的逻辑名
        return "success";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
